package com.jianbing.util;

import java.nio.charset.Charset;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

/**
 * 
 * @author cwl
 * @date 2017年5月11日
 *
 */
@Component
public class Constants {

	public static int accessTime;

	@Value("#{propertiesReader['accessTime']}")
	private void setAccessTime(int accessTime) {
		Constants.accessTime = accessTime;
	}

	public static String thxd_data_url;

	@Value("#{propertiesReader['thxd_data_url']}")
	private void setThxdDataUrl(String thxd_data_url) {
		Constants.thxd_data_url = thxd_data_url;
	}

	public static String data_notice_url;

	@Value("#{propertiesReader['data_notice_url']}")
	private void setDataNoticeUrl(String data_notice_url) {
		Constants.data_notice_url = data_notice_url;
	}

	public static String gjj_data_url;

	@Value("#{propertiesReader['gjj_data_url']}")
	private void setGjjDataUrl(String gjj_data_url) {
		Constants.gjj_data_url = gjj_data_url;
	}

	public static String gjj_loan_data_url;

	@Value("#{propertiesReader['gjj_loan_data_url']}")
	private void setGjjLoanDataUrl(String gjj_loan_data_url) {
		Constants.gjj_loan_data_url = gjj_loan_data_url;
	}

	public static String tb_data_url;

	@Value("#{propertiesReader['tb_data_url']}")
	private void setTbDataUrl(String tb_data_url) {
		Constants.tb_data_url = tb_data_url;
	}

	public static String jd_data_url;

	@Value("#{propertiesReader['jd_data_url']}")
	private void setJbDataUrl(String jd_data_url) {
		Constants.jd_data_url = jd_data_url;
	}

	public static String zx_data_url;

	@Value("#{propertiesReader['zx_data_url']}")
	private void setZxDataUrl(String zx_data_url) {
		Constants.zx_data_url = zx_data_url;
	}

	/*
	 * 网站状态
	 */
	public static final int NORMAL = 1, MAINTAIN = -1, DIAOYU = 2, NOT_SUPPORT = 0, ZHIYUANZHE = 3; // 正常，维护，钓鱼，不支持,志愿者

	public static String HOST = "127.0.0.1";

	public static Charset UTF_8 = Charset.forName("UTF-8");

	public static String jsonContentType = "application/json; charset=utf-8";

	public static String plainContentType = "text/plain; charset=UTF-8";

	public static String thxd = "thxd";

	public static String gjj = "gjj";

	public static String gjj_loan = "gjj_loan";

	public static String tb = "tb";

	public static String jd = "jd";

	public static String zx = "zx";

	/*
	 * 开通通话详单所有城市标识
	 */
	public static String thxd_city_open_all = "-1";

	/*
	 * 开通通话详单移动标识
	 */
	public static String thxd_city_open_yidong = "-2";

	public static String thxd_operator_yidong = "移动";

	/*
	 * 开通通话详单联通标识
	 */
	public static String thxd_city_open_liantong = "-3";

	public static String thxd_operator_liantong = "联通";

	/*
	 * 开通通话详单电信标识
	 */
	public static String thxd_city_open_dianxin = "-4";

	public static String thxd_operator_dianxin = "电信";

}
